<template>
    <n-drawer v-model:show="show" :width="width">
        <n-drawer-content :title="title" closable>
            <slot></slot>
        </n-drawer-content>
    </n-drawer>
</template>

<script setup>
defineProps({
    // 表名
    width: {
        type: Number,
        default: 600
    },
    title: {
        type: String,
        default: '抽屉标题'
    }
});
const show = defineModel();
</script>
